/* 页脚样式 */
footer {
    background: 
        linear-gradient(rgba(100, 150, 200, 0.75), rgba(80, 130, 180, 0.7)),
        url('../images/campus.jpg');
    color: #fff;
    padding: 3rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

/* 流光效果 */
.light-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        transparent 100%
    );
    background-size: 400% 400%;
    animation: lightFlow 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes lightFlow {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.footer-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    flex: 1;
    min-width: 250px;
}

.footer-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 第一部分：logo和学院名称 */
.logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.logo {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-right: 1rem;
    position: relative;
    overflow: hidden;
}

.logo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: logoShine 8s linear infinite;
}

@keyframes logoShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(30deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(30deg);
    }
    100% {
        transform: translateX(-100%) translateY(-100%) rotate(30deg);
    }
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: #fff;
    position: relative;
    z-index: 1;
}

.school-name {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.95);
    padding-left: 0.5rem;
    border-left: 3px solid #a50034;
}

/* 第二部分：版权信息 */
.copyright-section {
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.copyright-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

/* 第三部分：联系信息 */
.contact-section {
    display: flex;
    flex-direction: column;
}

.contact-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: titleUnderline 6s ease-in-out infinite;
}

@keyframes titleUnderline {
    0%, 100% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
}

.contact-details {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.contact-details div {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
}

.contact-details strong {
    color: #fff;
    min-width: 80px;
    display: inline-block;
}

/* 页脚底部装饰 */
.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .footer-container {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .copyright-section {
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 1.5rem 0;
    }
    
    .logo-section, .contact-section {
        align-items: center;
        text-align: center;
    }
    
    .school-name {
        border-left: none;
        border-top: 3px solid #a50034;
        padding-left: 0;
        padding-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 2rem 1rem 1rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .school-name {
        font-size: 1rem;
    }
    
    .copyright-text {
        font-size: 0.8rem;
    }
    
    .contact-title {
        font-size: 1.1rem;
    }
}